﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.ComponentModel.DataAnnotations;

namespace MyBet.Models
{
    public class PasswordRecovery
    {
        private string _login = null;
        private string _email = null;

        [Required]
        public string Login
        {
            get { return _login; }
            set
            {
                Validator.ValidateProperty(value,
                          new ValidationContext(this, null, null) { MemberName = "Login" });

                _login = value;
            }
        }

        [Required]
        public string Email
        {
            get { return _email; }
            set
            {
                Validator.ValidateProperty(value,
                         new ValidationContext(this, null, null) { MemberName = "Email" });
                _email = value;
            }
        }


    }
}
